package com.luocj.refresh.model;

import android.view.PixelCopy;

import com.chad.library.adapter.base.entity.MultiItemEntity;

import java.io.Serializable;

/**
 * Created by Administrator on 2018/2/9/009.
 */

public class MultiModel implements Serializable, MultiItemEntity {

    public static final int TYPE_TEXT = 0;
    public static final int TYPE_IMAGE = 1;
    public static final int TYPE_TEXT_IMAGE = 2;

    private String title;
    private String content;
    private int type;
    private int spanSize;

    public MultiModel(String title, String content, int type, int spanSize) {
        this.title = title;
        this.content = content;
        this.type = type;
        this.spanSize = spanSize;
    }

    public MultiModel(String title, String content, int spanSize) {
        this.title = title;
        this.content = content;
        this.spanSize = spanSize;
    }

    @Override
    public String toString() {
        return "MultiModel{" +
                "title='" + title + '\'' +
                ", content='" + content + '\'' +
                ", type=" + type +
                ", spanSize=" + spanSize +
                '}';
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public int getSpanSize() {
        return spanSize;
    }

    public void setSpanSize(int spanSize) {
        this.spanSize = spanSize;
    }

    @Override
    public int getItemType() {
        return type;
    }
}
